package com.test.designPattern.ch15.order;

import com.test.designPattern.ch15.Stock;
import com.test.designPattern.ch15.order.Order;

/**
 * @ClassName SellOrder
 * @Description 实现命令接口 -- 卖出命令
 * @Author 维康
 * @Date 2018/6/11 15:38
 * @Version 1.0
 **/
public class SellOrder implements Order {
    private Stock abcStock;

    public SellOrder(Stock abcStock){
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
